//
//  SongerDataModel.m
//  NewMusic
//
//  Created by chuxinyu123 on 15/11/17.
//  Copyright © 2015年 Going. All rights reserved.
//

#import "SongerDataModel.h"

@implementation SongerDataModel

- (void)dealloc
{
    [_pic_url release];
    [_singer_id release];
    [_singer_name release];
    [super dealloc];
}
- (instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}

+ (SongerDataModel *)songerDataModelWithDictionary:(NSDictionary *)dictionary
{
    SongerDataModel *songerDataModel = [[SongerDataModel alloc] initWithDictionary:dictionary];
    return songerDataModel;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqual:@"singer_id"]) {
        self.singer_id = [NSString stringWithFormat:@"%@",  value];
    }else{
        [super setValue:value forKey:key];
    }
}
@end
